package com.diandiansong.app.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

import diandiansong.library.utils.BaseEntity;

public class OrderShow extends BaseEntity {

    /**
     * message : null
     * data : {"order_status":"0","order_id":"180716213858984346","consignee":"黄小小3","consignee_address":"浙江省杭州市上城区文一路19号",
     * "consignee_phone":"13112312311","goods_amount":"1.56","cost_freight":"5.00","order_amount":"6.56","create_time":"2018-07-16 21:38:58",
     * "note":"发货要快点","order_status_name":"待付款","item":[{"commodity_name":"有规格的煮菜","item_img":"http://h1.mobilekoudai
     * .com/uploads/e3fe24ae7ac071bf79642f6ba9a0950cc6.jpg","unit":"斤","price":"1.56","number":"1","spec_info":"SS000/PP1"}]}
     */

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        /**
         * order_status : 0
         * order_id : 180716213858984346
         * consignee : 黄小小3
         * consignee_address : 浙江省杭州市上城区文一路19号
         * consignee_phone : 13112312311
         * goods_amount : 1.56
         * cost_freight : 5.00
         * order_amount : 6.56
         * create_time : 2018-07-16 21:38:58
         * note : 发货要快点
         * order_status_name : 待付款
         * item : [{"commodity_name":"有规格的煮菜","item_img":"http://h1.mobilekoudai.com/uploads/e3fe24ae7ac071bf79642f6ba9a0950cc6.jpg","unit":"斤",
         * "price":"1.56","number":"1","spec_info":"SS000/PP1"}]
         */

        @SerializedName("order_status")
        private String orderStatus;
        @SerializedName("order_id")
        private String orderId;
        @SerializedName("consignee")
        private String consignee;
        @SerializedName("consignee_address")
        private String consigneeAddress;
        @SerializedName("consignee_phone")
        private String consigneePhone;
        @SerializedName("goods_amount")
        private String goodsAmount;
        @SerializedName("cost_freight")
        private String costFreight;
        @SerializedName("order_amount")
        private String orderAmount;
        @SerializedName("create_time")
        private String createTime;
        @SerializedName("note")
        private String note;
        @SerializedName("order_status_name")
        private String orderStatusName;
        @SerializedName("item")
        private List<Item> item;

        public String getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(String orderStatus) {
            this.orderStatus = orderStatus;
        }

        public String getOrderId() {
            return orderId;
        }

        public void setOrderId(String orderId) {
            this.orderId = orderId;
        }

        public String getConsignee() {
            return consignee;
        }

        public void setConsignee(String consignee) {
            this.consignee = consignee;
        }

        public String getConsigneeAddress() {
            return consigneeAddress;
        }

        public void setConsigneeAddress(String consigneeAddress) {
            this.consigneeAddress = consigneeAddress;
        }

        public String getConsigneePhone() {
            return consigneePhone;
        }

        public void setConsigneePhone(String consigneePhone) {
            this.consigneePhone = consigneePhone;
        }

        public String getGoodsAmount() {
            return goodsAmount;
        }

        public void setGoodsAmount(String goodsAmount) {
            this.goodsAmount = goodsAmount;
        }

        public String getCostFreight() {
            return costFreight;
        }

        public void setCostFreight(String costFreight) {
            this.costFreight = costFreight;
        }

        public String getOrderAmount() {
            return orderAmount;
        }

        public void setOrderAmount(String orderAmount) {
            this.orderAmount = orderAmount;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getNote() {
            return note;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public String getOrderStatusName() {
            return orderStatusName;
        }

        public void setOrderStatusName(String orderStatusName) {
            this.orderStatusName = orderStatusName;
        }

        public List<Item> getItem() {
            return item;
        }

        public void setItem(List<Item> item) {
            this.item = item;
        }

        public static class Item {
            /**
             * commodity_name : 有规格的煮菜
             * item_img : http://h1.mobilekoudai.com/uploads/e3fe24ae7ac071bf79642f6ba9a0950cc6.jpg
             * unit : 斤
             * price : 1.56
             * number : 1
             * spec_info : SS000/PP1
             */

            @SerializedName("commodity_name")
            private String commodityName;
            @SerializedName("item_img")
            private String itemImg;
            @SerializedName("unit")
            private String unit;
            @SerializedName("price")
            private String price;
            @SerializedName("number")
            private String number;
            @SerializedName("spec_info")
            private String specInfo;

            public String getCommodityName() {
                return commodityName;
            }

            public void setCommodityName(String commodityName) {
                this.commodityName = commodityName;
            }

            public String getItemImg() {
                return itemImg;
            }

            public void setItemImg(String itemImg) {
                this.itemImg = itemImg;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getSpecInfo() {
                return specInfo;
            }

            public void setSpecInfo(String specInfo) {
                this.specInfo = specInfo;
            }
        }
    }
}
